﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FinWeb3.Models
{
    public partial class Budget
    {
        public decimal SpentValue { get; set; }

        public decimal RemainValue 
        { 
            get 
            {
                if (-Value > -SpentValue)
                    return Value - SpentValue;
                else
                    return 0M;
            } 
        }
    }
}
